/**
 * Created by wry on 2015/4/2.
 */

module.exports = function (app) {
    var lottery = require('../controllers/lottery-controller');

    app.get('/rest/' + RESTFullServiceVersion + '/lottery/getLotteryDetail/:userId/:lotteryId', lottery.getLotteryDetail);
    app.get('/rest/' + RESTFullServiceVersion + '/lottery/generateLotteryTicket/:userId/:lotteryId', lottery.generateLotteryTicket);
    app.get('/rest/' + RESTFullServiceVersion + '/lottery/getLotteryAwardList/:userId/:lotteryId/:page', lottery.getLotteryAwardList);
};